using System;
using System.Collections.Generic;
using System.Text;

namespace DataProvider
{
    public class DatabaseExc:Exception
    {
        public DatabaseExc(string message)
            : base(message)
        {
        }
        private int errCodeSQL = 0;
        private int errCodeUser = 0;

        public int ErrCodeSQL
        {
            get { return errCodeSQL; }
            set 
            {
                errCodeSQL = value;
            }
        }
        public int ErrCodeUser
        {
            get { return errCodeUser; }
            set 
            {
                errCodeUser = value;
            }
        }

        public DatabaseExc(string message, int errCodeSQL)
            : base(message)
        {
            this.errCodeSQL = errCodeSQL;
        }

        public DatabaseExc(string message, int errCodeUser, int errCodeSQL)
            : base(message)
        {
            this.errCodeSQL = errCodeSQL;
            this.errCodeUser = errCodeUser;
        }
    }
}
